#保修占比
import pandas as pd

from pyecharts import options as opts
from pyecharts.charts import Liquid

df=pd.read_csv("二手车基本信息.csv")
df["是否保修"].fillna("无保修",inplace=True)
per=df['是否保修'].value_counts()['无保修']/len(df)
c = (
    Liquid()
        .add("lq", [1 - per])
        .set_global_opts(title_opts=opts.TitleOpts(title="保修占比"))
        .render("bigdata/cardata/保修占比.html")

)

